<template>
  <div>
    <el-container>
      <el-header>
        <el-menu
          class="el-menu-demo"
          mode="horizontal"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <span style="font-size:20px;color:white">欢迎来到焰狗购物中心</span>
          <el-menu-item index="1">
            {{name}} 的个人中心
            <el-avatar icon="el-icon-user-solid">个人中心</el-avatar>
          </el-menu-item>
          <el-submenu index="2">
            <template slot="title">购物车</template>
            <el-menu-item index="2-1">查看购物车</el-menu-item>
            <el-menu-item index="2-2">登陆</el-menu-item>
            <el-menu-item index="2-3">退出</el-menu-item>
            <!-- <el-submenu index="2-4">
              <template slot="title">选项4</template>
              <el-menu-item index="2-4-1">选项1</el-menu-item>
              <el-menu-item index="2-4-2">选项2</el-menu-item>
              <el-menu-item index="2-4-3">选项3</el-menu-item>
            </el-submenu>-->
          </el-submenu>
          <el-menu-item index="4">
            <a href="https://www.ele.me" target="_blank">订单管理</a>
          </el-menu-item>
        </el-menu>
      </el-header>
      <el-main>
        <el-carousel :interval="5000" arrow="always">
          <el-carousel-item v-for="item in 4" :key="item">
            <h3>
              <img src="../../img/hf1.jpg" width="400px" alt />
            </h3>
          </el-carousel-item>
        </el-carousel>
      </el-main>
    </el-container>
    <div>
      <span style="color:red;font-size:30px;font-family:宋体;">正在热销，限时销售！！！快来抢购吧</span>
      <el-header style="height:350px" class="pb">
        <ul>
          <li>
            <div>
              <img src="../../img/hf2.jpg" height="200px" alt />
            </div>
            <p>
             
              
               <router-link to="/llshops/spxq" tag="div"> 
               <button>购买</button>
               <span style="color:red">￥888</span>
               </router-link>
             
               
            </p>
          </li>
          <li>
            <div>
              <img src="../../img/hf2.jpg" height="200px" alt />
            </div>
            <p>
              <button>查看</button>
              <button>购买</button>
              <span style="color:red">￥888</span>
            </p>
          </li>
          <li>
            <div>
              <img src="../../img/hf3.jpg" height="200px" alt />
            </div>
            <p>
              <button>查看</button>
              <button>购买</button>
              <span style="color:red">￥888</span>
            </p>
          </li>
          <li>
            <div>
              <img src="../../img/hf6.jpg" height="200px" alt />
            </div>
            <p>
              <button>查看</button>
              <button>购买</button>
              <span style="color:red">￥888</span>
            </p>
          </li>
        </ul>
      </el-header>
      <el-main>
        <el-carousel :interval="4000" type="card" height="200px">
          <el-carousel-item v-for="item in 6" :key="item">
            <h3 class="medium">
              <img src="../../img/hf1.jpg" width="400px" alt />
            </h3>
          </el-carousel-item>
        </el-carousel>
      </el-main>
      <el-footer style="height:300px;text-align:center">
      <p>国家药监局提示您：请正确认识古装，古装是传统文化，是中华民族的优秀传统。</p> 
      <p>使用条款古装政策隐私政策网站地图川公网安备 31010602001530号 中国工商 川ICP备08100043号-21</p> 
      <p> ©L'Oreal China 古装 (中国)有限公司版权所有</p>
      <p>古装中国官网，古装天猫旗舰店，古装官方微信精品商城，为官方认证渠道</p> 
      </el-footer>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: "张三",
      imgs: [
        { img: "../../img/hf1.jpg" },
        { img: "../../img/hf1.jpg" },
        { img: "../../img/hf1.jpg" },
        { img: "../../img/hf1.jpg" }
      ]
    };
  }
};
</script>

<style>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-menu--horizontal > .el-menu-item {
  float: right;
  height: 60px;
  line-height: 60px;
  margin: 0;
  border-bottom: 2px solid transparent;
  color: #909399;
}
.el-menu--horizontal > .el-submenu {
  float: right;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: left;
  line-height: 60px;
}
.pb {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}
.pb ul li {
  width: 300px;
  height: 300px;
  list-style: none;
  float: left;
}
.pb ul li button {
  width: 50px;
  height: 25px;
  line-height: 25px;
  border: none;
  cursor: pointer;
}
.pb ul li div {
  height: 200px;
}
.pb ul li button:nth-child(2) {
  margin-left: 60px;
  background: red;
  color: white;
}
.pb ul li img:hover {
  border: 3px solid white;
  transform: scale(1.1);
  transition: 1s;
}
</style>